﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<div class="modal-dialog x-modal-dialog" style="width:650px;">

  <div class="modal-content">

    <div class="modal-header x-breadcrumb no-bottom-border clearfix">

      <h2><i class="glyphicon glyphicon-fire" title="模块详情"></i>&nbsp;&nbsp;<span>模块信息</span></h2>

      <button type="button" class="close" data-dismiss="modal">&times;</button>

    </div>

    <form class="form-horizontal bottom-margin-20" method="POST" action="${ctx.host}/modules/${module.id}" data-validate="true">
      
      <input type="hidden" name="_method" value="PATCH">
      <input type="hidden" name="id" value="${module.id}">
      
      <div class="modal-body">
      
        <div class="form-horizontal bottom-margin-20">
            
            <div class="form-group x-form-group">
              <label class="control-label col-xs-4">模块名称：</label>
              <div class="col-xs-6 pull-left">
                <p class="form-control-static">${module.name}</p>
              </div>
            </div>
            
            <div class="form-group x-form-group">
              <label class="control-label col-xs-4">模块别名：</label>
              <div class="col-xs-6 pull-left">
                <p class="form-control-static">${module.alias}</p>
              </div>
            </div>
              
            <div class="form-group x-form-group">
              <label class="control-label col-xs-4">创建时间：</label>
              <div class="col-xs-6 pull-left">
                <p class="form-control-static">
                  <fmt:formatDate value="${module.createTime}" pattern="yyyy-MM-dd HH:mm:ss" />
                </p>
              </div>
            </div>

          </div>
                
      </div>

      <div class="modal-footer">
        <button type="submit" class="btn btn-success btn-shadow btn-shadow-success x-btn">${ module.display ? "关闭显示" : "打开显示" }</button>
        <button type="button" class="btn btn-default btn-shadow btn-shadow-default x-btn" data-dismiss="modal">取消</button>
      </div>

    </form>

  </div>

</div>